#include <header.h>
void fun2(int num){
	printf("fun2 sleep before\n");
	sleep(5);
	printf("fun2 sleep over\n");
}

void fun3(int num){
	printf("fun3 sleep before\n");
	sleep(5);
	printf("fun3 sleep over\n");
}
int main(int argc, char *argv[]){
	signal(2, fun2);
	signal(3, fun3);

	while (1);

	return 0;
}

// 先ctrl+\再ctrl+c 3的sleep会被打断